import * as Acts from './consts'

const PublishShow = {
	state: {
		isShow: false
	},
	mutations: {
		[Acts.SHOW_PANEL](state) {
			state.isShow = true
		},
		[Acts.HIDE_PANEL](state) {
			state.isShow = false
		}
	},
	actions: {
		[Acts.SHOW_PANEL](store) {
			store.commit(Acts.SHOW_PANEL)
		},
		[Acts.HIDE_PANEL](store) {
			store.commit(Acts.HIDE_PANEL)
		}
	}
}

export default PublishShow